package com.study.springbootstudy1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xulingyun
 * @title: HelloWorldController
 * @projectName spring-boot
 * @description: TODO
 * @date 2019-06-1809:35
 **/
//RestController 的意思就是controller里面的方法都以json格式输出，不用再写什么jackjson配置的了！
@RestController
public class HelloWorldController {

    @RequestMapping("/helloword/index")
    public String index() {
        return "helloWord";
    }
}
